static mut PAGE_SIZE: usize = 0;
static mut PAGE_SHIFT: usize = 0;
static mut PAGE_MASK: usize = 0;

pub fn pagedef_config(size: usize, shift: usize, mask: usize) {
    unsafe {
        PAGE_SIZE = size;
        PAGE_SHIFT = shift;
        PAGE_MASK = mask;
    }
}

#[inline(always)]
pub fn pagesize() -> usize {
    unsafe { PAGE_SIZE }
}

#[inline(always)]
pub fn pageshift() -> usize {
    unsafe { PAGE_SHIFT }
}

#[inline(always)]
pub fn pagemask() -> usize {
    unsafe { PAGE_MASK }
}
